package cn.com.nes.site.controller.system;

import cn.com.nes.site.entity.PageData;
import cn.com.nes.site.entity.vo.user.GetInstallPeopleVo;
import cn.com.nes.site.service.system.user.BusinessUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * 业务人员接口
 */
@Slf4j
@Controller
@RequestMapping("/v2/user/business")
public class BusinessUserController {

    @Resource
    private BusinessUserService businessUserService;

    /**
     * 查询业务人员接口
     * @return
     */
    @RequestMapping(value = "getInstallPeoplePage", method = RequestMethod.GET)
    @ResponseBody
    public PageData getInstallPeoplePage(GetInstallPeopleVo vo) throws Exception {
        return businessUserService.getInstallPeoplePage(vo);
    }

}
